import request from '@/utils/request'

// 查询练习记录列表
export function listPracticeRecord(query) {
    return request({
        url: '/business/PracticeRecord/list',
        method: 'get',
        params: query
    })
}

// 查询练习记录详细
export function getPracticeRecord(practiceRecordId) {
    return request({
        url: '/business/PracticeRecord/' + practiceRecordId,
        method: 'get'
    })
}

// 新增练习记录
export function addPracticeRecord(data) {
    return request({
        url: '/business/PracticeRecord',
        method: 'post',
        data: data
    })
}

// 修改练习记录
export function updatePracticeRecord(data) {
    return request({
        url: '/business/PracticeRecord',
        method: 'put',
        data: data
    })
}

// 删除练习记录
export function delPracticeRecord(practiceRecordId) {
    return request({
        url: '/business/PracticeRecord/' + practiceRecordId,
        method: 'delete'
    })
}
